package com.itheima.entity;

/**
 * @author spt
 * @description 分页查询条件封装类
 * @date 2019/9/16
 **/
public class QueryPageBean {
    private Integer currentPage;
    private Integer pageSize;

    public QueryPageBean() {
        currentPage = 1;
        pageSize = 5;
    }

    @Override
    public String toString() {
        return "QueryPageBean{" +
            "currentPage=" + currentPage +
            ", pageSize=" + pageSize +
            '}';
    }

    public QueryPageBean(Integer currentPage, Integer pageSize) {
        this.currentPage = currentPage;
        this.pageSize = pageSize;
    }

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
